-
-
Notifications
You must be signed in to change notification settings - Fork 390
Use apply-refact 0.12.0 #3469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use apply-refact 0.12.0 #3469
Conversation
@@ -609,7 +601,7 @@ applyHint recorder ide nfp mhint = | |||
(anns', modu') <- | |||
ExceptT $ mapM (uncurry Refact.applyFixities) | |||
$ postParseTransform (Right (anns, [], dflags, modu)) rigidLayout | |||
liftIO $ (Right <$> withRuntimeLibdir (Refact.applyRefactorings' position commands anns' modu')) | |||
liftIO $ (Right <$> Refact.applyRefactorings' position commands anns' modu') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is curious, this code-path is definitely not exercised for GHC >= 9.2, since the API in apply-refact has changed in 0.11.0. Additionally, I don't think we need the hack withRuntimeLibdir
here because the libdir is only needed for parsing and we pass in a module already.
PR breaks because of tweag/ormolu#981 |
78b66ce
to
d3508f3
Compare
* Use apply-refact 0.12.0 * Limit ormolu version to < 0.5.3 (cherry picked from commit 065957e)
* Use apply-refact 0.12.0 * Limit ormolu version to < 0.5.3
Fixes #3241 by upgrading to apply-refact 0.12.0 for compatible GHC versions. Other GHC versions are not affected.